#include "options.h"
#include "ui_options.h"

options::options(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::options)
{
    ui->setupUi(this);
}

options::~options()
{
    delete ui;
}



void options::on_horizontalSlider_sliderMoved(int position)
{
    vol=position/100.0;
    emit change_option();
}








void options::on_checkBox_clicked(bool checked)
{
    if(checked){
        this->on=1;
    }else{
        on=0;
    }
    emit change_option();
}


void options::on_checkBox_2_clicked(bool checked)
{
    if(checked){
        this->on_chouxiang=1;
    }else{
        on_chouxiang=0;
    }
    emit change_option();
}

